// restbed
// using bed advances time one day
// Cell 0,1 - A stuff done flag. If one is given, sets this flag to 1

beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	break;

beginstate USE_STATE;
	if ((get_memory_cell(0) > 0) || (get_memory_cell(1) > 0)) {
		if (gf(get_memory_cell(0),get_memory_cell(1)) == 0)
			sf(get_memory_cell(0),get_memory_cell(1),1);
		}
	force_sleep();
	increase_age(2500);
break;
